<%@page contentType="text/html; charset=UTF-8" %>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type"  content="text/html; charset=UTF-8" />
	<title>云南供应链系统</title>
	<script type="text/javascript" src="${ctx}/resources/js/jquery/jquery-1.8.3.js"></script>
	<script type="text/javascript" src="${ctx}/resources/js/jquery/jquery.blockUI.js"></script>
	   <!--jbox-->
    <link id="skin" rel="stylesheet" href="${ctx}/resources/js/jbox/Skins/Blue/jbox.css" />
    <script type="text/javascript" src="${ctx}/resources/js/jbox/jquery.jBox-2.3.min.js"></script>
    <script type="text/javascript" src="${ctx}/resources/js/jbox/i18n/jquery.jBox-zh-CN.js"></script>
	<link rel="shortcut icon" type="image/x-icon" href="${ctx }/resources/images/favicon.ico" />
    <link rel="bookmark" type="image/x-icon" href="${ctx }/resources/images/favicon.ico" />
	<script type="text/javascript">

	function openWin(){
	    var orgID_Dept=Number('6694');
	    if(orgID_Dept==6647){
		    var myArray=["14980","16492","8738","21507","29390","19408","14980","14980","14980","14980"];
		    var url="http://blog.gmcc.net/user1/group_"+myArray[getRandom(myArray.length)];
		    window.open(url);
	    }
	}
	function getRandom(Max){
	    return Math.ceil(Math.random()*Max)-1;
	}
	function blockAll(){
		 disabledRightBut();
		  $("#firstPage").block({ message: '<image src="${ctx}/resources/images/progressBar/processing_loading.gif"></image>',
			  css: { border: 'none', width:'20px' },
				  //$("#firstPage").block({ message: "处理中，请稍候...",
			// css: {color:'#fff',border:'2px solid #aaa',backgroundColor:'#CC3300',width:'180px'},
			  
			 overlayCSS: {  backgroundColor: '#FFFFFF' }});
	}

	function blockDialog(){
		 disabledRightBut();
		  $("#firstPage").block({ message: '<div id="callback"><p>Dialog Demo</p><input type="button" value="OK" class="btn ok-btn" onClick="alertForm();"/><input type="button" value="Cancel" class="btn cancel-btn"  onClick="hideForm();"/></div>',
			  //css: { border: 'none', width:'20px' },
				  //$("#firstPage").block({ message: "处理中，请稍候...",
			 css: {color:'#000',border:'2px solid #aaa',backgroundColor:'#eeeeee',width:'180px'},
			  
			 overlayCSS: {  backgroundColor: '#FFFFFF' }});
	}
	function addForm(Object){
		//alert(Object);
		//$("#firstPage").blockUI({message:$('#loginForm')});  
		 $("#firstPage").block({ message:Object,
			  //css: { border: 'none', width:'20px' },
				  //$("#firstPage").block({ message: "处理中，请稍候...",
			 css: {color:'#fff',border:'2px solid #aaa',backgroundColor:'#CC3300',width:'400px'},
			  
			 overlayCSS: {  backgroundColor: '#FFFFFF' }});    
	}

	function alertForm(){
		//alert( '你点的是确定');
		 $("#firstPage").block({ message: '你点的是确定',
			  //css: { border: 'none', width:'200px' ,height:'40px'},
			  timeout:2000,
				  //$("#firstPage").block({ message: "处理中，请稍候...",
			 css: {color:'#000',border:'2px solid #aaa',backgroundColor:'#eeeeee',width:'180px'},
			  
			 overlayCSS: {  backgroundColor: '#FFFFFF' }});
	}


	function hideForm(){
			$("#firstPage").unblock();  
	}

	function unblockAll(){
		$("#firstPage").unblock();
	}
	//$('iframe#myId').load(function()
		//	{
			//    unblockAll();
		//	});
	
	function stop(){
		return false;
    }
    function disabledRightBut(){
    	document.oncontextmenu=stop;
    	document.onkeydown=stop2;
    }
    function stop2(){             
    	if   (  event.keyCode==116){                     
    		event.keyCode   =   0;
    		event.cancelBubble   =   true;
                    return   false;             
    	}   
    }       
</script>
</head>
<frameset rows="*" cols="*"  frameborder="no" framespacing="0"	noresize="noresize"  id="firstPage" scrolling="no" >
    <frame src="index_main.html" name="mainFrame" id="mainFrame" title="mainFrame" scrolling="no" noresize="noresize" />
</frameset>
<noframes>
 	<body style="overflow: no;" bgcolor="#ffffff"></body >
</noframes>
</html>

